package org.sen.action;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.sen.bean.ComentBean;
import org.sen.service.impl.LoginServiceImpl;
import org.sen.utils.PublicUtils;

/**
 * Servlet implementation class ServiceComcontent
 */
@WebServlet("/ServiceComcontent")
public class ServiceComcontent extends HttpServlet {
	private static final long serialVersionUID = 1L;

	/**
	 * 客服评论
	 */
	protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
		ComentBean adminB = PublicUtils.convertFormData2Bean(request, ComentBean.class);
		int i = PublicUtils.getInstance(LoginServiceImpl.class).saveOrUpdateServicereview(adminB);
		PrintWriter pw = response.getWriter();
		pw.println("ok");
		pw.flush();
		pw.close();
	}

}
